/**
 * @projectName: api-interface
 * @package: com.wangzz.apiinterface.util
 * @className: SignUtil
 * @author: wangzz
 * @description: TODO
 * @date: 2024/3/11 12:02
 * @version: 1.0
 */

package com.wangzz.apiclientsdk.utils;

import cn.hutool.crypto.digest.DigestUtil;

/**
 * @Author: wangzz
 * @Description: 签名
 * @DateTime: 2024/3/11 12:02
 **/
public class SignUtil {

    public static String getSign(String body, String secretKey) {
        String testStr = body + "." + secretKey;
        // 5393554e94bf0eb6436f240a4fd71282
        return DigestUtil.md5Hex(testStr);
    }
}